3.316 \(\int \cot ^2(e+f x) (a+b \tan ^2(e+f x))^{3/2} \, dx\)

Optimal. Leaf size=114 \[ \frac{b^{3/2} \tanh ^{-1}\left (\frac{\sqrt{b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}-\frac{(a-b)^{3/2} \tan ^{-1}\left (\frac{\sqrt{a-b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}-\frac{a \cot (e+f x) \sqrt{a+b \tan ^2(e+f x)}}{f} \]

[Out]

-(((a - b)^(3/2)*ArcTan[(Sqrt[a - b]*Tan[e + f*x])/Sqrt[a + b*Tan[e + f*x]^2]])/f) + (b^(3/2)*ArcTanh[(Sqrt[b]
*Tan[e + f*x])/Sqrt[a + b*Tan[e + f*x]^2]])/f - (a*Cot[e + f*x]*Sqrt[a + b*Tan[e + f*x]^2])/f

________________________________________________________________________________________

Rubi [A]  time = 0.138248, antiderivative size = 114, normalized size of antiderivative = 1., number of steps used = 7, number of rules used = 7, integrand size = 25, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.28, Rules used = {3670, 474, 523, 217, 206, 377, 203} \[ \frac{b^{3/2} \tanh ^{-1}\left (\frac{\sqrt{b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}-\frac{(a-b)^{3/2} \tan ^{-1}\left (\frac{\sqrt{a-b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}-\frac{a \cot (e+f x) \sqrt{a+b \tan ^2(e+f x)}}{f} \]

Antiderivative was successfully verified.

[In]

Int[Cot[e + f*x]^2*(a + b*Tan[e + f*x]^2)^(3/2),x]

[Out]

-(((a - b)^(3/2)*ArcTan[(Sqrt[a - b]*Tan[e + f*x])/Sqrt[a + b*Tan[e + f*x]^2]])/f) + (b^(3/2)*ArcTanh[(Sqrt[b]
*Tan[e + f*x])/Sqrt[a + b*Tan[e + f*x]^2]])/f - (a*Cot[e + f*x]*Sqrt[a + b*Tan[e + f*x]^2])/f

Rule 3670

Int[((d_.)*tan[(e_.) + (f_.)*(x_)])^(m_.)*((a_) + (b_.)*((c_.)*tan[(e_.) + (f_.)*(x_)])^(n_))^(p_.), x_Symbol]
 :> With[{ff = FreeFactors[Tan[e + f*x], x]}, Dist[(c*ff)/f, Subst[Int[(((d*ff*x)/c)^m*(a + b*(ff*x)^n)^p)/(c^
2 + ff^2*x^2), x], x, (c*Tan[e + f*x])/ff], x]] /; FreeQ[{a, b, c, d, e, f, m, n, p}, x] && (IGtQ[p, 0] || EqQ
[n, 2] || EqQ[n, 4] || (IntegerQ[p] && RationalQ[n]))

Rule 474

Int[((e_.)*(x_))^(m_)*((a_) + (b_.)*(x_)^(n_))^(p_)*((c_) + (d_.)*(x_)^(n_))^(q_), x_Symbol] :> Simp[(c*(e*x)^
(m + 1)*(a + b*x^n)^(p + 1)*(c + d*x^n)^(q - 1))/(a*e*(m + 1)), x] - Dist[1/(a*e^n*(m + 1)), Int[(e*x)^(m + n)
*(a + b*x^n)^p*(c + d*x^n)^(q - 2)*Simp[c*(c*b - a*d)*(m + 1) + c*n*(b*c*(p + 1) + a*d*(q - 1)) + d*((c*b - a*
d)*(m + 1) + c*b*n*(p + q))*x^n, x], x], x] /; FreeQ[{a, b, c, d, e, p}, x] && NeQ[b*c - a*d, 0] && IGtQ[n, 0]
 && GtQ[q, 1] && LtQ[m, -1] && IntBinomialQ[a, b, c, d, e, m, n, p, q, x]

Rule 523

Int[((e_) + (f_.)*(x_)^(n_))/(((a_) + (b_.)*(x_)^(n_))*Sqrt[(c_) + (d_.)*(x_)^(n_)]), x_Symbol] :> Dist[f/b, I
nt[1/Sqrt[c + d*x^n], x], x] + Dist[(b*e - a*f)/b, Int[1/((a + b*x^n)*Sqrt[c + d*x^n]), x], x] /; FreeQ[{a, b,
 c, d, e, f, n}, x]

Rule 217

Int[1/Sqrt[(a_) + (b_.)*(x_)^2], x_Symbol] :> Subst[Int[1/(1 - b*x^2), x], x, x/Sqrt[a + b*x^2]] /; FreeQ[{a,
b}, x] &&  !GtQ[a, 0]

Rule 206

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTanh[(Rt[-b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[-b, 2]), x]
 /; FreeQ[{a, b}, x] && NegQ[a/b] && (GtQ[a, 0] || LtQ[b, 0])

Rule 377

Int[((a_) + (b_.)*(x_)^(n_))^(p_)/((c_) + (d_.)*(x_)^(n_)), x_Symbol] :> Subst[Int[1/(c - (b*c - a*d)*x^n), x]
, x, x/(a + b*x^n)^(1/n)] /; FreeQ[{a, b, c, d}, x] && NeQ[b*c - a*d, 0] && EqQ[n*p + 1, 0] && IntegerQ[n]

Rule 203

Int[((a_) + (b_.)*(x_)^2)^(-1), x_Symbol] :> Simp[(1*ArcTan[(Rt[b, 2]*x)/Rt[a, 2]])/(Rt[a, 2]*Rt[b, 2]), x] /;
 FreeQ[{a, b}, x] && PosQ[a/b] && (GtQ[a, 0] || GtQ[b, 0])

Rubi steps

\begin{align*} \int \cot ^2(e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a+b x^2\right )^{3/2}}{x^2 \left (1+x^2\right )} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{a \cot (e+f x) \sqrt{a+b \tan ^2(e+f x)}}{f}+\frac{\operatorname{Subst}\left (\int \frac{-a (a-2 b)+b^2 x^2}{\left (1+x^2\right ) \sqrt{a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{a \cot (e+f x) \sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{(a-b)^2 \operatorname{Subst}\left (\int \frac{1}{\left (1+x^2\right ) \sqrt{a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{a+b x^2}} \, dx,x,\tan (e+f x)\right )}{f}\\ &=-\frac{a \cot (e+f x) \sqrt{a+b \tan ^2(e+f x)}}{f}-\frac{(a-b)^2 \operatorname{Subst}\left (\int \frac{1}{1-(-a+b) x^2} \, dx,x,\frac{\tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}+\frac{b^2 \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}\\ &=-\frac{(a-b)^{3/2} \tan ^{-1}\left (\frac{\sqrt{a-b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}+\frac{b^{3/2} \tanh ^{-1}\left (\frac{\sqrt{b} \tan (e+f x)}{\sqrt{a+b \tan ^2(e+f x)}}\right )}{f}-\frac{a \cot (e+f x) \sqrt{a+b \tan ^2(e+f x)}}{f}\\ \end{align*}

Mathematica [C]  time = 6.12369, size = 256, normalized size = 2.25 \[ -\frac{a \tan (e+f x) \left (\sqrt{2} (a-2 b) \sqrt{\frac{\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}{b}} \text{EllipticF}\left (\sin ^{-1}\left (\frac{\sqrt{\frac{\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}{b}}}{\sqrt{2}}\right ),1\right )+\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)+\sqrt{2} (b-a) \sqrt{\frac{\csc ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}{b}} \Pi \left (-\frac{b}{a-b};\left .\sin ^{-1}\left (\frac{\sqrt{\frac{(a+b+(a-b) \cos (2 (e+f x))) \csc ^2(e+f x)}{b}}}{\sqrt{2}}\right )\right |1\right )\right )}{\sqrt{2} f \sqrt{\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)}} \]

Antiderivative was successfully verified.

[In]

Integrate[Cot[e + f*x]^2*(a + b*Tan[e + f*x]^2)^(3/2),x]

[Out]

-((a*((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2 + Sqrt[2]*(a - 2*b)*Sqrt[((a + b + (a - b)*Cos[2*(e +
f*x)])*Csc[e + f*x]^2)/b]*EllipticF[ArcSin[Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]/Sqrt[2]
], 1] + Sqrt[2]*(-a + b)*Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]*EllipticPi[-(b/(a - b)),
ArcSin[Sqrt[((a + b + (a - b)*Cos[2*(e + f*x)])*Csc[e + f*x]^2)/b]/Sqrt[2]], 1])*Tan[e + f*x])/(Sqrt[2]*f*Sqrt
[(a + b + (a - b)*Cos[2*(e + f*x)])*Sec[e + f*x]^2]))

________________________________________________________________________________________

Maple [C]  time = 0.339, size = 3333, normalized size = 29.2 \begin{align*} \text{output too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x)

[Out]

-1/f/((2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2)*(cos(f*x+e)*sin(f*x+e)*2^(1/2)*(1/a*(I*cos(f*x+e)*b^(1/2)*(a-b)
^(1/2)-I*b^(1/2)*(a-b)^(1/2)+cos(f*x+e)*a-b*cos(f*x+e)+b)/(cos(f*x+e)+1))^(1/2)*(-2/a*(I*cos(f*x+e)*b^(1/2)*(a
-b)^(1/2)-I*b^(1/2)*(a-b)^(1/2)-cos(f*x+e)*a+b*cos(f*x+e)-b)/(cos(f*x+e)+1))^(1/2)*EllipticF((cos(f*x+e)-1)*((
2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2)/sin(f*x+e),((8*I*b^(3/2)*(a-b)^(1/2)-4*I*b^(1/2)*(a-b)^(1/2)*a+a^2-8*a
*b+8*b^2)/a^2)^(1/2))*a^2-2*EllipticF((cos(f*x+e)-1)*((2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2)/sin(f*x+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*b^(1/2)*(a-b)^(1/2)-a+2*b)
/a)^(1/2)/((2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2))*a*b*sin(f*x+e)-2*2^(1/2)*(1/a*(I*cos(f*x+e)*b^(1/2)*(a-b)
^(1/2)-I*b^(1/2)*(a-b)^(1/2)+cos(f*x+e)*a-b*cos(f*x+e)+b)/(cos(f*x+e)+1))^(1/2)*(-2/a*(I*cos(f*x+e)*b^(1/2)*(a
-b)^(1/2)-I*b^(1/2)*(a-b)^(1/2)-cos(f*x+e)*a+b*cos(f*x+e)-b)/(cos(f*x+e)+1))^(1/2)*EllipticPi((cos(f*x+e)-1)*(
(2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2)/sin(f*x+e),-1/(2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)*a,(-(2*I*b^(1/2)*(a-b)^
(1/2)-a+2*b)/a)^(1/2)/((2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2))*b^2*sin(f*x+e)+cos(f*x+e)^2*((2*I*b^(1/2)*(a-
b)^(1/2)+a-2*b)/a)^(1/2)*a^2-cos(f*x+e)^2*((2*I*b^(1/2)*(a-b)^(1/2)+a-2*b)/a)^(1/2)*a*b+((2*I*b^(1/2)*(a-b)^(1
/2)+a-2*b)/a)^(1/2)*a*b)*cos(f*x+e)^3*((a*cos(f*x+e)^2-cos(f*x+e)^2*b+b)/cos(f*x+e)^2)^(3/2)/sin(f*x+e)/(a*cos
(f*x+e)^2-cos(f*x+e)^2*b+b)^2

________________________________________________________________________________________

Maxima [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}} \cot \left (f x + e\right )^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x, algorithm="maxima")

[Out]

integrate((b*tan(f*x + e)^2 + a)^(3/2)*cot(f*x + e)^2, x)

________________________________________________________________________________________

Fricas [A]  time = 6.95168, size = 1829, normalized size = 16.04 \begin{align*} \text{result too large to display} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x, algorithm="fricas")

[Out]

[1/4*(2*b^(3/2)*log(2*b*tan(f*x + e)^2 + 2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(b)*tan(f*x + e) + a)*tan(f*x + e) -
 (a - b)*sqrt(-a + b)*log(-((a^2 - 8*a*b + 8*b^2)*tan(f*x + e)^4 - 2*(3*a^2 - 4*a*b)*tan(f*x + e)^2 + a^2 + 4*
((a - 2*b)*tan(f*x + e)^3 - a*tan(f*x + e))*sqrt(b*tan(f*x + e)^2 + a)*sqrt(-a + b))/(tan(f*x + e)^4 + 2*tan(f
*x + e)^2 + 1))*tan(f*x + e) - 4*sqrt(b*tan(f*x + e)^2 + a)*a)/(f*tan(f*x + e)), -1/4*(4*sqrt(-b)*b*arctan(sqr
t(-b)*tan(f*x + e)/sqrt(b*tan(f*x + e)^2 + a))*tan(f*x + e) + (a - b)*sqrt(-a + b)*log(-((a^2 - 8*a*b + 8*b^2)
*tan(f*x + e)^4 - 2*(3*a^2 - 4*a*b)*tan(f*x + e)^2 + a^2 + 4*((a - 2*b)*tan(f*x + e)^3 - a*tan(f*x + e))*sqrt(
b*tan(f*x + e)^2 + a)*sqrt(-a + b))/(tan(f*x + e)^4 + 2*tan(f*x + e)^2 + 1))*tan(f*x + e) + 4*sqrt(b*tan(f*x +
 e)^2 + a)*a)/(f*tan(f*x + e)), -1/2*((a - b)^(3/2)*arctan(-2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(a - b)*tan(f*x +
 e)/((a - 2*b)*tan(f*x + e)^2 - a))*tan(f*x + e) - b^(3/2)*log(2*b*tan(f*x + e)^2 + 2*sqrt(b*tan(f*x + e)^2 +
a)*sqrt(b)*tan(f*x + e) + a)*tan(f*x + e) + 2*sqrt(b*tan(f*x + e)^2 + a)*a)/(f*tan(f*x + e)), -1/2*((a - b)^(3
/2)*arctan(-2*sqrt(b*tan(f*x + e)^2 + a)*sqrt(a - b)*tan(f*x + e)/((a - 2*b)*tan(f*x + e)^2 - a))*tan(f*x + e)
 + 2*sqrt(-b)*b*arctan(sqrt(-b)*tan(f*x + e)/sqrt(b*tan(f*x + e)^2 + a))*tan(f*x + e) + 2*sqrt(b*tan(f*x + e)^
2 + a)*a)/(f*tan(f*x + e))]

________________________________________________________________________________________

Sympy [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int \left (a + b \tan ^{2}{\left (e + f x \right )}\right )^{\frac{3}{2}} \cot ^{2}{\left (e + f x \right )}\, dx \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)**2*(a+b*tan(f*x+e)**2)**(3/2),x)

[Out]

Integral((a + b*tan(e + f*x)**2)**(3/2)*cot(e + f*x)**2, x)

________________________________________________________________________________________

Giac [F]  time = 0., size = 0, normalized size = 0. \begin{align*} \int{\left (b \tan \left (f x + e\right )^{2} + a\right )}^{\frac{3}{2}} \cot \left (f x + e\right )^{2}\,{d x} \end{align*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate(cot(f*x+e)^2*(a+b*tan(f*x+e)^2)^(3/2),x, algorithm="giac")

[Out]

integrate((b*tan(f*x + e)^2 + a)^(3/2)*cot(f*x + e)^2, x)